// Used to handle continually running client-side functions.
// Ex: Rank system, auto-heal in base, etc...

// Define our conditions (looks cleaner further on)
#define __rankUp ((score player) != SXP_playerScore) and (alive player)
#define __repair ((vehicle player) != player) and (SXP_repair == false) and !((typeOf (vehicle player)) isKindOf "Air")

// Check if any of our functions need to be run
while {true} do {
	waitUntil {(__rankUP) or (__repair)};
	if (__rankUP) then {[] call SXP_fnc_rankUP};
	if (__repair) then {[] spawn SXP_fnc_landRepair};
};